import Vue from 'vue'
import App from './App.vue'
import router from "@/router"
import store from '@/store';

// 三级联动组件--全局组件
import TypeNav from '@/components/TypeNav';
Vue.component(TypeNav.name, TypeNav)

// 轮播图——全局组件
import Carsousel from '@/components/Carsousel';
Vue.component(Carsousel.name, Carsousel)

// 分页组件
import Pagination from '@/components/Pagination';
Vue.component(Pagination.name, Pagination)

// mock数据
import '@/mock/mockServe'

// swiper样式
import "swiper/css/swiper.css"

// elementUI
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

Vue.config.productionTip = false
new Vue({
  beforeCreate() {
    // 全局事件总线$bug
    Vue.prototype.$bus = this
  },
  render: h => h(App),
  router,
  store
}).$mount('#app')
